<template>
    <div>
        <div class="width-75 tc b-c2 c-f">
            <div class="flex z-header">
                <div @click="$router.back(-1)">
                    <i class="iconfont icon-zuo m-t-18"></i>
                </div>
                <div class="fs-36">
                    意见反馈
                </div>
                <div class="fs-30" @click="present">
                    提交
                </div>
            </div>
        </div>
        <div class="width-75 tc">
            <textarea name="" id="" cols="30" rows="10" class="opinion" v-model="opinion"></textarea>
        </div>
    </div>
</template>
<script>
import { MessageBox } from 'mint-ui';

export default {
    data() {
        return {
            opinion:"",
        }
    },
    methods: {
        present() {
            var params = new URLSearchParams();
            params.append("body", this.opinion);

            this.$http({
                method:"post",
                url:localPath + '/proposal/addProposal',
                data:params
            }).then((data)=>{
                var arr = data.data
                MessageBox.alert(data.data.message);
                // console.log(data);
            }).catch((error)=>{
                console.log(error);
            })

        }
    }
}
</script>
<style>
.opinion {
    width: 100%;
    height: 5.42rem;
    margin-top: .5rem;
    padding: .2rem;
    font-size: .28rem;
    border: 0px;
    font-family: MicrosoftYaHei;
    background-color: #f2f2f2;
}
</style>

